﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RESTFinder.Desktop.MVVM
{
    public class MainViewModel
    {
        public MainViewModel()
        {
            //string getUrl = string.Format("http://localhost:8080/document");
            //using (var client = new Utils.Client.RESTWebClient())
            //{
            //    var responseTask = client.Get<dynamic>(getUrl, Utils.Serialization.SerializationToUse.Json);
            //    var response = responseTask.Result;
            //};

            FolderModels = new List<FolderModel>()
            {
                new FolderModel()
                {
                    Name = "Root",
                    Childrens = new List<FolderModel>()
                    {
                        new FolderModel() { Name = "201501"},
                        new FolderModel() { Name = "201502"},
                        new FolderModel() { Name = "201503"},
                        new FolderModel() { Name = "201504"},
                        new FolderModel() { Name = "201505"},
                    }
                },
            };
        }

        public List<FolderModel> FolderModels { get; set; }
    }

    public class FolderModel
    {
        public List<FolderModel> Childrens { get; set; }

        public string Name { get; set; }

        public string Path { get; set; }
    }
}
